import request from "@/api/request"

export const getAllReplys=(data)=>{
    return request({
        url:`/reply/${data.pageNum}/${data.pageSize}/${data.id}/${data.userId}`
    })
}
export const getReplysByPostId=(data)=>{
    return request({
        url:`/reply/reply/${data.pageNum}/${data.pageSize}/${data.id}`
    })
}
export const getAllReply=(data)=>{
    return request({
        url:`/reply/reply/${data.pageNum}/${data.pageSize}`
    })
}
export const InsertReply=(data)=>{
    return request({
        url:'/reply',
        method:'POST',
        data
    })
}
export const DZReply=(data)=>{
    return request({
        url:`/reply/likeOn/${data.replyId}/${data.userId}`,
        method:'POST',
    })
}
export const QXDZReply=(data)=>{
    return request({
        url:`/reply/likeDown/${data.replyId}/${data.userId}`,
        method:'POST',
    })
}
export const getMyReplys=(id)=>{
    return request({
        url:`/reply/user/${id}`
    })
}
export const deleteReplyById=(id)=>{
    return request({
        url:`/reply/delete/${id}`,
        method:'DELETE',
    })
}